import { NavLink, Outlet } from "react-router-dom";
const DemoHooks = () => {
    return (<>
        <h2>14. Hooks</h2>
        <nav className="nav">
            <NavLink to='/demo02Hook/useState'>useState</NavLink>
            <NavLink to='/demo02Hook/useEffect'>useEffect</NavLink>
            <NavLink to='/demo02Hook/useRef'>useRef</NavLink>
        </nav>
        <div className="right">
          <Outlet />
        </div>

    </>);
}

export default DemoHooks;